class CreateSubscriptions < ActiveRecord::Migration

  def self.up
    create_table :subscriptions do |t|
      t.column :feed_id, :integer, :null => false
      t.column :user_id, :integer, :null => false
      t.column :category_id, :integer, :default => -1
      t.column :created_at, :timestamp, :null => false
      t.column :updated_at, :timestamp, :null => false
      t.column :display_all, :boolean, :default => false
      t.column :unreadeds_count, :integer, :default => 0
    end
  end

  def self.down
    drop_table  :subscriptions
  end

end
